import { postRequest, getRequest } from '/@/lib/axios';

const baseUrl = "/iotAppSub"

export const iotApi = {

  /**
   * 分页查询  @author  hzw
   */
  queryPage: (param) => {
    return postRequest(baseUrl + '/queryPage', param);
  },

  queryList: (param) => {
    return postRequest(baseUrl + '/queryList', param);
  },

  /**
   * 增加  @author  hzw
   */
  add: (param) => {
    return postRequest(baseUrl + '/add', param);
  },

  /**
   * 修改  @author  hzw
   */
  update: (param) => {
    return postRequest(baseUrl + '/update', param);
  },

  /**
   * 删除  @author  hzw
   */
  delete: (id) => {
    return getRequest(baseUrl + `/delete/${id}`);
  },

};
